package com.pro01.tracker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.InetAddress;

@SpringBootApplication
public class TrackerApplication {

    public static void main(String[] args) {
        try {
            InetAddress ip = InetAddress.getLocalHost();
            System.out.println("✅ Tracker 启动成功: http://" + ip.getHostAddress() + ":7070/announce");
        } catch (Exception e) {
            System.out.println("Tracker 启动成功，但无法获取 IP");
        }
        SpringApplication.run(TrackerApplication.class, args);
    }

}
